#include "adminerrordialog.h"
#include "ui_adminerrordialog.h"

//constructor
AdminErrorDialog::AdminErrorDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AdminErrorDialog)
{
    ui->setupUi(this);
    this->setWindowTitle("Error");

}

//more useful constructor for the dialog box
AdminErrorDialog::AdminErrorDialog(QWidget *parent, QString evil):
    QDialog(parent),
    ui(new Ui::AdminErrorDialog)
{
    ui->setupUi(this);
    ui->label->setText(evil);
    this->setWindowTitle("Error");

}

//destructor of the dialog box
AdminErrorDialog::~AdminErrorDialog()
{
    delete ui;
}
